/*
 * Copyright 2025 author or author.
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.jcwang.commons.tools.util.net;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serial;

/**
 * 浏览器信息
 *
 * @author 王金城
 **/
public class BrowserInfo implements java.io.Serializable {

    @Serial
    private static final long serialVersionUID = -4656581164394466594L;
    /**
     * 浏览器名称
     **/
    private String name;

    /**
     * 浏览器版本
     **/
    private String version;

    /**
     * 操作系统
     **/
    private String os;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("name", name)
                .append("version", version)
                .append("os", os)
                .toString();
    }
}
